﻿using Coolvis.UI.Theme.Console;
using CPPEI.Coolzon.UI;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WEITSM.Theme.Default.Console;

namespace WEITSM.Theme.Default.Console
{
    public class DefaultTheme : ITheme
    {
        public IMainView GetMainView()
        {
            return new CPPEI.Coolzon.Theme.Fashion.MainView();
        }


        public View CreateSelectSolutionView(string currentSolutionName, bool isSwitchSolution, bool isCanBeBack)
        {
            return new CPPEI.Coolzon.UI.Views.SelectSolutionView(currentSolutionName, isSwitchSolution, isCanBeBack);
        }

        public View CreateLoadingView(string solution, string solutionFile, string solutionDirectory)
        {
            return new CPPEI.Coolzon.UI.Views.LoadingView(solution, solutionFile, solutionDirectory);
        }

        public View CreateLoginView(string account, string password)
        {
            if (string.IsNullOrEmpty(account))
            {
                return new CPPEI.Coolzon.UI.Views.LoginView();
            }
            else
            {
                return new CPPEI.Coolzon.UI.Views.LoginView(account, password);
            }
        }
    }
}
